﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuickApp;

namespace QuickApp.DbInterface
{
    public abstract class QADbColumn : IQAChild
    {
        #region Private Fields

        protected String name;

        protected String displayName;

        protected String type;

        protected QADbManager dataManager;

        protected QADbTable parent;

        #endregion Private Fields

        #region Public Constructors

        public QADbColumn(string name, string displayName,QADbManager dataManager, QADbTable parent)
        {
            this.name = name;
            this.displayName = displayName;
            this.dataManager = dataManager;
            this.parent = parent;
        }

        #endregion Public Constructors

        #region Public Properties
        public String DisplayName
        {
            get { return displayName; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        public String Type
        {
            get { return type; }
            set { type = value; }
        }

        #endregion Public Properties

        public override string ToString()
        {
            return DisplayName;
        }
        
    }
}
